import http from '@/utils/request'
import { base } from '@/config'

const platformFirm = {
  // 新增企业主
  add(params) {
    return http.postJson(`${base.user}/platformEtp/add`, params)
  },

  // 编辑企业主
  edit(params) {
    return http.postJson(`${base.user}/platformEtp/edit`, params)
  },

  // 列表
  list(params) {
    return http.get(`${base.user}/platformEtp/list`, params)
  },

  // 详情
  detail(params) {
    return http.get(`${base.user}/platformEtp/detail`, { params })
  },

  // 查看资料
  table(params) {
    return http.get(`${base.user}/platformEtp/transitionMemberList/table`, { params })
  },

  // 支入积分明细
  getDetailList(params) {
    return http.get(`/${base.finance}/platformStatistics/getDetailList`, { params })
  },

  // 转换会员列表
  transitionMemberList(params) {
    return http.get(`${base.user}/platformEtp/transitionMemberList`, { params })
  }
}

export default platformFirm
